<template>
  <h1>分栏布局组件</h1>
<!--  ：gutter 设置子元素的左右内边距padding 20 -> 代表左10右10-->
  <el-row :gutter="20">
    <el-col :span="6">测试数据</el-col>
    <el-col :span="6" style="border: 2px solid #ff0">测试数据</el-col>
    <el-col :span="6">测试数据</el-col>
    <el-col :span="6" style="border: 2px solid #f00">测试数据</el-col>
  </el-row>
  <h3>两张图</h3>
  <el-row :gutter="10">
    <el-col :span="12"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="12"><img src="2024.png" style="width: 100%;"></el-col>
  </el-row>
  <h3>六张图</h3>
  <el-row :gutter="10">
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
  </el-row>
  <h3>三张图</h3>
  <el-row :gutter="10">
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="8"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="12"><img src="2024.png" style="width: 100%;"></el-col>
  </el-row>
  <h3>八等分1~8</h3>
  <el-row :gutter="10">
    <el-col :span="3" v-for="item in 8">{{ item }}</el-col>
  </el-row>
  <h3>一张图</h3>
  <el-row :gutter="10">
    <el-col :span="20" :offset="2"><img src="2024.png" style="width: 100%;"></el-col>
  </el-row>
  <h3>一张图</h3>
  <el-row :gutter="10">
    <el-col :span="12" :offset="6"><img src="mwzz.png" style="width: 100%;"></el-col>
  </el-row>
<!--  布局嵌套 -->
  <el-row :gutter="10">
    <el-col :span="12" style="border: 5px solid #f00">左侧</el-col>
    <el-col :span="12" style="border: 5px solid #0f0">
      <el-row>
        <el-col :span="8" style="border: 5px solid #00f">1</el-col>
        <el-col :span="8" style="border: 5px solid #0ff">2</el-col>
        <el-col :span="8" style="border: 5px solid #ff0">3</el-col>
      </el-row>
    </el-col>
  </el-row>


</template>

<script setup>

</script>

<style scoped>

</style>